#!/bin/bash

# 启动程序
#
# 参数：
# $1 UUID
# $2 Jetty的start.jar路径
# $3 项目ContextPath
# $4 项目代码路径
chmod 777 $2/bin/shutdown.sh
sh $2/bin/shutdown.sh
rm -rf $2/wepapps/$3.war
rm -rf $2/wepapps/$3
rm -rf $4
chmod 777 $2/bin/startup.sh
sh $2/bin/startup.sh
echo "项目已删除"